﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="UserEdit.aspx.cs" Inherits="AnOtherBlog.AJAX.Admin.Users.UserEdit" Title="" %>
<%@ Register src="../../Controls/MRPP/Register.ascx" tagname="Register" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<%--
	<div class="framecontentMsg">
		<asp:Label id="lblMsg" runat="server" EnableViewState="False" CssClass="lblMsg"></asp:Label>
	</div>
--%>
	<asp:Panel ID="pnlAddUser" runat="server" Visible="false" GroupingText="<%$ Resources:AdminUsers,pnlAddUser %>" >
		<uc1:Register ID="Register1" runat="server" />
		<br /><br />
<%--
		<asp:CreateUserWizard ID="cuwRegister" runat="server" 
			TitleTextStyle-CssClass="sectionHeader" 
			Width="100%" 
			CreateUserButtonStyle-CssClass="button"
			/>
--%>
	</asp:Panel>

	<asp:Panel ID="pnlEditUser" runat="server" Visible="false" GroupingText="<%$ Resources:AdminUsers,pnlEditUser %>" >

		<asp:Label ID="lblUserName" runat="server" CssClass="labelblock"  Text="<%$ Resources:AdminUsers,lblUserName %>" AssociatedControlID="txtUserName" />
		<asp:TextBox ID="txtUserName" runat="server" CssClass="textbox" />

		<asp:Label ID="lblEmail" runat="server" CssClass="labelblock" Text="<%$ Resources:AdminUsers,lblEmail %>" AssociatedControlID="txtEmail" />
		<asp:TextBox ID="txtEmail" runat="server" CssClass="textboxlong" />

		<asp:CheckBox ID="chkActive" runat="server" CssClass="labelblock" TextAlign="Left" Text="<%$ Resources:AdminUsers,chkActive %>" />

		<br />
		<asp:Panel ID="pnlRoles" runat="server" GroupingText="<%$ Resources:AdminUsers,pnlRoles %>" >
			<asp:Repeater ID="rptrRoles" runat="server">
				<ItemTemplate>
					<asp:checkbox runat="server" id="checkBox1" text='<%# Container.DataItem.ToString()%>' checked='<%# IsUserInRole(Container.DataItem.ToString())%>' CssClass="label"/>
					<br/>
				</ItemTemplate>
			</asp:Repeater>
		</asp:Panel>

		<br />
		<asp:Button ID="btnSave" runat="server" Text="<%$ Resources:AdminUsers,btnSave %>" OnClick="btnSave_Click" CssClass="buttonmodal" />

	</asp:Panel>
</asp:Content>
